﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Api.DataAccess.OnlineUser;

public class OnlineUserEntity : EntityObjectBase
{

    /// <summary>
    /// 连接Id
    /// </summary>
    public required string ConnectionId { get; set; }

    /// <summary>
    /// 用户Id
    /// </summary>
    public required Guid UserId { get; set; }

    /// <summary>
    /// 连接时间
    /// </summary>
    public required DateTime Time { get; set; }

    /// <summary>
    /// 连接IP
    /// </summary>
    public required string Ip { get; set; }

    /// <summary>
    /// 浏览器
    /// </summary>
    public required string Browser { get; set; }

    /// <summary>
    /// 操作系统
    /// </summary>
    public required string Os { get; set; }
}
